package com.woniu.adminservice.controller;

import com.woniu.adminservice.commeon.CommonResult;
import com.woniu.adminservice.service.AuctionDataSerivce;
import org.omg.PortableServer.AdapterActivator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.servlet.ModelAndView;

import javax.xml.ws.soap.Addressing;
import java.util.List;

/**
 * @ClassName :AuctionDataController
 *
 * @description: 拍卖商品统计数据
 *
 * @author: HuangJing
 *
 * @create: 2020-03-24 15:01
 **/
@Controller
@RequestMapping("/auctionData")
public class AuctionDataController {
    @Autowired
    AuctionDataSerivce auctionDataSerivce;
    /**
     * Description : TODO  拍卖物品信息统计<br/>
     * ChangeLog : 1. 创建 (2020/3/24 16:29 [82432]);
     *
     * @return java.util.List
    */
    @GetMapping("/infoList")
    @ResponseBody
    public List info(){
        List auctionInfo= auctionDataSerivce.selectAuctionInfo();
        return auctionInfo;
    }
    /**
     * Description : TODO  拍卖活动数据统计<br/>
     * ChangeLog : 1. 创建 (2020/3/24 16:30 [82432]);
     *
     * @return java.util.List
    */
    @GetMapping("/activeList")
    @ResponseBody
    public List active(){
       List auctionActive= auctionDataSerivce.selectAuctionActive();
       return auctionActive;
    }
}